package book;

public class BookList {

    private Book[] books = new Book[10];
    private int usebook;

    public BookList() {
        books[0] = new Book("三国演义","罗贯中",10,"小说");
        books[1] = new Book("西游记","吴承恩",59,"小说");
        books[2] = new Book("红楼梦","曹雪芹",16,"小说");
        usebook = 3;
    }

    public Book[] getBooks( ) {
        return books;
    }

    public Book getBooks(int p) {
        return books[p];
    }

    public void setBooks(Book book, int p) {
        this.books[p] = book;
    }

    public int getUsebook() {
        return usebook;
    }

    public void setUsebook(int usebook) {
        this.usebook = usebook;
    }
}
